Fix the build where !CONFIG_KEXEC (e.g., arm) by providing a default
crashinfo_maxaddr_bits.
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
Committed-by: Keir Fraser <keir@xen.org>
#include <xen/guest_access.h>
#include <xen/shutdown.h>
#include <xen/vga.h>
-#ifdef CONFIG_KEXEC
#include <xen/kexec.h>
-#endif
#include <asm/debugger.h>
#include <asm/div64.h>
#include <xen/hypercall.h> /* for do_console_io */
#ifndef __XEN_KEXEC_H__
#define __XEN_KEXEC_H__
+#ifdef CONFIG_KEXEC
+
#include <public/kexec.h>
#include <asm/percpu.h>
#include <xen/elfcore.h>
vmcoreinfo_append_str("OFFSET(%s.%s)=%lu\n", #name, #field, \
(unsigned long)offsetof(struct name, sub.field))
+#else /* !CONFIG_KEXEC */
+
+#define crashinfo_maxaddr_bits 0
+
+#endif
+
#endif /* __XEN_KEXEC_H__ */
/*